<template>
  <div>
      <ul>
          <li v-for="i in list" :key="i.id">{{i.name}}
              <router-link :to="{'name':'setparams','query':{'id':i.id}}">参数配置</router-link>
          </li>
      </ul>
  </div>
</template>

<script>
import axios from 'axios'
export default {
    data(){
        return{
            list:[]

        }
    },
    methods:{
        getdata(){
            axios({url:"http://127.0.0.1:5000/worklist",method:"get"}).then(res=>{
                this.list = res.data.list
            })
        }
    },
    mounted(){
        this.getdata()
    }

}
</script>

<style>

</style>